<template>
  <div class="division">
    <div class="line"></div>
    <div class="title_box">
      <div class="badge">{{ number }}</div>
      <div class="title">{{ title }}</div>
    </div>
    <div class="line"></div>
  </div>
</template>

<script>
export default {
  name: "Division",
  props: {
    number: {
      type: [Number, String],
      default: 1,
    },
    title: {
      type: String,
      default: "标题",
    },
  },
};
</script>

<style lang="scss" scoped>
.division {
  height: 45px;
  display: flex;
  align-items: center;

  .title_box {
    padding: 0 28px;
    display: flex;
    align-items: center;

    .title {
      font-size: 16px;
      font-weight: 600;
    }

    .badge {
      width: 19px;
      height: 19px;
      line-height: 19px;
      text-align: center;
      border-radius: 50%;
      background-color: #409eff;
      margin-right: 10px;
      color: #fff;
    }
  }
  .line {
    flex: 1;
    border-top: 2px dashed #e1e1e1;
  }
}
</style>
